package io.terminus.spzx.manager.service.impl;

import io.terminus.spzx.common.log.service.AsyncOperLogService;
import io.terminus.spzx.manager.mapper.SysOperLogMapper;
import io.terminus.spzx.model.entity.system.SysOperLog;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author lichunlong lcl253137@alibaba-inc.com
 * @desc 异步保存日志Service接口实现类
 * @date 2024-10-18
 */
@Service
@RequiredArgsConstructor
public class AsyncOperLogServiceImpl implements AsyncOperLogService {

    private final SysOperLogMapper sysOperLogMapper;

    @Override
    public void saveSysOperLog(SysOperLog sysOperLog) {
        sysOperLogMapper.insert(sysOperLog);
    }
}
